package com.example.redistest.theadpool;

/**
 * 多线程,redis中存储数据
 */
public class RedisThread {

    public static Integer num = 10000;


    public static void main(String[] args) {
        while (true){
            Thread thread1 = new Thread(new Thread1());
            Thread thread2 = new Thread(new Thread1());
            thread2.start();
            thread1.start();
            System.out.println("num"+num);
        }

    }
}
